package com.mine.common.core.request.dto;


import java.util.List;

/**
 * 分页结果
 * @author WangYX
 * @date 2023/11/30 9:48
 * @version 1.0.0
 */
public class PageResult<T> {

    /**
     * 查询数据
     */
    private List<T> records;

    /**
     * 总条数
     */
    private long total;

    /**
     * 每页数量
     */
    private long size;

    /**
     * 当前页
     */
    private long current;


    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }
}

